//
//  ManMainVC.swift
//  ManGuangDB
//
//  Created by 李东 on 2024/3/26.
//

import UIKit

class ManMainVC: ManBaseVC {

    @IBOutlet weak var setupBtn_top: NSLayoutConstraint!
    
    @IBOutlet weak var scrollView_top: NSLayoutConstraint!
    
    
    @IBOutlet weak var scrollView: UIScrollView!
    
    override func viewDidLoad() {
        super.viewDidLoad()

        hideNavgaitionBar()
        setupBtn_top.constant = CGFloat.topPadding
        scrollView_top.constant = CGFloat.aspect(value: 260)
        scrollView.layer.cornerRadius = 20
        
    }
    @IBAction func settngHandle(_ sender: Any) {
        navigationController?.pushViewController(ManSetVC(), animated: true)
    }
    

    @IBAction func dbTestHandle(_ sender: Any) {
        RXPermissionUtils.microphone{[weak self] in
            self?.navigationController?.pushViewController(ManWebVC(url: AppConfig.H5_URL), animated: true)
        }
    }
    
    @IBAction func ticketHandle(_ sender: Any) {
        navigationController?.pushViewController(ManTicketListVC(), animated: true)

    }
    
}
